#!/bin/sh

set -e

CONFIGFILE=/etc/apache2/conf.d/cortado

purge_config()
{
  rm -f $CONFIGFILE
  if [ -x /usr/bin/ucf ]; then
    ucf --purge $CONFIGFILE
  fi
}

. /usr/share/debconf/confmodule

if [ "$1" = purge ]; then
  purge_config
  invoke-rc.d apache2 reload
fi

#DEBHELPER#

